package com.example.houseman.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.houseman.entity.TbHouseInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.org.dto.HouseInfoDto;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 龚梦
 * @since 2021-03-31
 */
public interface TbHouseInfoMapper extends BaseMapper<TbHouseInfo> {

    Page<TbHouseInfo> getHouse(@Param("h") HouseInfoDto houseInfoDto, Page<TbHouseInfo> page);

    TbHouseInfo getHouseInfoByHouseId(String houseId);

    Page<TbHouseInfo> getExtensionHouse(@Param("h")HouseInfoDto houseInfoDto, Page<TbHouseInfo> page);
}
